<%
int i=1, j=2;

switch(5*i) {
   case 1:
      %>5*1=1 ?!<%
      break;
   case 2: // unlike php, java requires constants in case statement (TODO: make negative test)
      %>5*1=2<%
      break;
   case 5:
      %>5*1=5 ok<%
      break;
   default:
      %>5*1!=5 ?!<%
}
%>

Break test 1

<%
do {
   ala: {
      switch(i) {
         case 1:
            break ala;
      }
      %> Don't print it. <%
   }
   %> Print it. <%
} while(false);
%>

Break test 2

<%
ela : {
   do {
      ala: {
         switch(i) {
            case 1:
               break ela;
         }
         %> Don't print it. <%
      }
      %> Don't print it. <%
   } while(false);
}
%>

Break test 3

<%
ela : {
   do {
      ala: {
         switch(i) {
            case 1:
               break;
         }
         %> Print it. <%
      }
      %> Print it. <%
   } while(false);
}
%>

Continue test 1

<%
do {
   switch(i) {
      case 1:
         continue;
   }
   %> Don't print it. <%
} while(false);
%>

